const Layout = () =>
  import(/* webpackChunkName: "layout" */ "@/layouts/index.vue");
const Login = () =>
  import(/* webpackChunkName: "login" */ "@/views/Login/Login.vue");
const Home = () => import(/* webpackChunkName: "home" */ "@/views/Home.vue");
const error404 = () =>
  import(/* webpackChunkName: "home" */ "../../views/error/404.vue");
// import nav from "./nav-test";
const currencyRoutes = [
  {
    path: "/login",
    name: "Login",
    component: Login,
    meta: { title: "登录页" },
    hidden: true
  },
  {
    path: "/",
    name: "Home",
    component: Layout,
    redirect: "/dashbord",
    children: [
      {
        path: "dashbord",
        name: "Dashbord",
        component: Home,
        meta: { title: "首页", icon: "el-icon-s-data" }
      }
    ]
  },
  {
    path: "/404",
    name: "404",
    component: error404,
    hidden: true
  },
  // nav
];
export default currencyRoutes;
